/*****************************************************************************/
/**
 *  @file   Application.h
 *  @author Jun Nishimura, Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#ifndef KVSTILEDDISPLAYVIS__TDW__APPLICATION_H_INCLUDE
#define KVSTILEDDISPLAYVIS__TDW__APPLICATION_H_INCLUDE

#include <kvs/ApplicationBase>
#include "Configuration.h"


namespace kvstileddisplayvis
{

namespace tdw
{

class Application : public kvs::ApplicationBase
{

protected:

    tdw::Configuration* m_configuration;
    static bool m_is_master;

public:

    Application( int argc, char** argv );

    virtual ~Application( void );

public:

    static bool IsMaster( void );

    static bool IsRenderer( void );

public:

    virtual int run( void );

    virtual void quit( void );

};

} // end of namespace tdw

} // end of namespace kvs

#endif
